<?php
/**
 * @file
 * itd_linkit_ckeditor.linkit_profiles.inc
 */

/**
 * Implements hook_default_linkit_profile().
 */
function itd_linkit_ckeditor_default_linkit_profile() {
  $export = array();

  $linkit_profile = new stdClass;
  $linkit_profile->disabled = FALSE; /* Edit this to true to make a default linkit_profile disabled initially */
  $linkit_profile->api_version = 1;
  $linkit_profile->name = 'content_manager';
  $linkit_profile->admin_title = 'Content Manager';
  $linkit_profile->data = array(
    'plugins' => array(
      'taxonomy' => array(
        'weight' => '0',
        'enabled' => 1,
      ),
      'user' => array(
        'weight' => '0',
        'enabled' => 0,
      ),
      'node' => array(
        'weight' => '0',
        'enabled' => 1,
      ),
      'file' => array(
        'weight' => '0',
        'enabled' => 0,
      ),
      'external' => array(
        'weight' => '0',
        'enabled' => 1,
      ),
    ),
    'node' => array(
      'result_description' => '[node:title] by [node:author] · [node:created:short]',
      'content_types' => array(
        'ballot_measures' => 'ballot_measures',
        'event' => 'event',
        'general_content' => 'general_content',
        'news' => 'news',
        'resource' => 'resource',
        'service' => 'service',
        'video' => 'video',
        'webform' => 'webform',
        'banner' => 0,
        'featured_content' => 0,
      ),
      'include_unpublished' => 0,
      'group_by_content_type' => 1,
    ),
    'user' => array(
      'result_description' => '',
    ),
    'taxonomy' => array(
      'result_description' => '[term:vocabulary]',
      'group_by_vocabulary' => 1,
    ),
    'file' => array(
      'result_description' => '[file:mime] · [file:size]',
      'show_scheme' => 0,
      'group_by_scheme' => 0,
      'image_extra_info' => array(
        'thumbnail' => 'thumbnail',
        'dimensions' => 'dimensions',
      ),
    ),
    'autocomplete' => array(
      'charLimit' => 3,
      'wait' => 350,
      'remoteTimeout' => 10000,
    ),
    'attributes' => array(
      'rel' => array(
        'weight' => '0',
        'enabled' => 0,
      ),
      'class' => array(
        'weight' => '0',
        'enabled' => 0,
      ),
      'accesskey' => array(
        'weight' => '0',
        'enabled' => 0,
      ),
      'id' => array(
        'weight' => '0',
        'enabled' => 0,
      ),
      'title' => array(
        'weight' => '0',
        'enabled' => 0,
      ),
    ),
  );
  $linkit_profile->role_rids = array(
    4 => 1,
    6 => 1,
    5 => 1,
    9 => 1,
  );
  $linkit_profile->weight = 0;
  $export['content_manager'] = $linkit_profile;

  return $export;
}
